package com.lonely.service.impl;

import com.lonely.dao.PaymentDao;
import com.lonely.entity.po.PaymentPo;
import com.lonely.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @date: 2021-11-02 11:34
 * @author: ztkj-hzb
 * @description:
 **/
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;


    /**
     * 查询指定id 对应的数据
     *
     * @param id
     * @return
     */
    @Override
    public PaymentPo getById(Long id) {
        return this.paymentDao.getById(id);
    }

    /**
     * 新增数据
     *
     * @param paymentPo
     * @return
     */
    @Override
    public int insert(PaymentPo paymentPo) {
        return this.paymentDao.insert(paymentPo);
    }
}
